﻿/*
 * Determines whether two specified string have the same value.
 */
create function [String].[Equals] ( @p_String1 nvarchar(max), @p_String2 nvarchar(max) )
returns bit as 
begin

  if @p_String1 = @p_String2 or (@p_String1 is null and @p_String2 is null)
  begin
    return 1;
  end
  
  return 0;

end